package cn.team11.smarteye.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import cn.team11.sds.dayi.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import cn.team11.smarteye.base.BaseFragment;
import cn.team11.smarteye.base.BasePresenter;

/**
 * Created by Yang on 2017/10/28.
 */

public class DevicesListFragment extends BaseFragment implements SwipeRefreshLayout.OnRefreshListener {


    @BindView(R.id.my_cateye_list)
    RecyclerView mDeviceRecyclerView;
    @BindView(R.id.swipe_cateye_refresh_layout)
    SwipeRefreshLayout mSwipeRefresh;

    public static DevicesListFragment newInstance(Bundle bundle) {
        DevicesListFragment fragment = new DevicesListFragment();
        fragment.setArguments(bundle);
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.view_cateye_list, container, false);
        ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        init();
    }


    @Override
    public void init() {
        mSwipeRefresh.setOnRefreshListener(this);
    }

    @Override
    public void setPresenter(BasePresenter presenter) {

    }


    @Override
    public void onRefresh() {

    }
}
